package com.xin.di.uav.applet.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xin.di.uav.applet.po.Business;
import com.xin.di.uav.user.order.po.MerchantPO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author LTQ
 * @since 2023-12-07
 */
@Mapper
public interface BusinessMapper extends BaseMapper<Business> {


    @Select({"<script>",
            "select id,name,logo from merchant where status=1" +
                    " AND scenic_spot_id=#{scenicSpotId}" +
                    "  order by  sort asc ",
            "</script>"})
    List<MerchantPO> selectListOrderBySort(@Param("offset") int offset, @Param("pageSize") int pageSize, @Param("scenicSpotId") String scenicSpotId);
}
